//
//  TimerManager.h
//  UUZuche
//
//  Created by wangzhuoxuan on 14/10/21.
//
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

typedef void (^TimerHandler)(NSInteger remainSeconds);


@interface TimerManager : NSObject

@property (nonatomic, assign) NSInteger totalInterval;
@property (nonatomic, assign) NSInteger passedInterval;
@property (nonatomic, assign) CGFloat process;
@property (nonatomic, copy) TimerHandler timerHandler;

+ (instancetype)sharedInstance;

- (void)startTimerWithTotalInterval:(NSInteger)total
                     passedInterval:(NSInteger)passed
                            handler:(TimerHandler)handler;
- (void)invalidateTimer;

@end
